package com.wjm.shootgame.shoot;

import com.wjm.shootgame.shoot.img.Images;

import java.awt.image.BufferedImage;

/*
* 天空类
* */
public class Sky extends FlyingObject{
    //速度
    private int speed;


    //构造方法初始化
    public Sky(){
        this.width=512;
        this.height=768;
        this.x=0;
        this.y=0;
        this.speed=2;
    }


    //用于输出初始化的值
    @Override
    public String toString() {
        return "Sky{" +
                "speed=" + speed +
                ", width=" + width +
                ", height=" + height +
                ", x=" + x +
                ", y=" + y +
                '}';
    }


    @Override
    public BufferedImage getimage() {
        return Images.skyImage;
    }
}
